<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>$.post的ajax请求</title>
  </head>

  <body>
    <button id="btn">点击发送$.post的ajax请求</button>

  </body>
  <script src="../js/jquery.min.js"></script>
  <script>
    $("#btn").on('click', function () {
      $.post("http://localhost:8000/post", {
        name: "jason",
        age: 1
      }, function (response) {
        console.log(response);
      });
    })
  </script>

</html>

